﻿article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { 
    display: block;
}

#pagewrap {
	width: 980px;
	margin: 0 auto;
	background-color: #999;
}

#header {
	height: 160px;
	background-color: #096;
}

#content {
	width: 600px;
	height: 400px;
	float: left;
	background-color: #C03;
}

#sidebar {
	height: 380px;
	width: 380px;
	float: right;
	background-color: #639;
}

#footer {
	clear: both;
    height: 40px;
	background-color: #F0C;
}

@media screen and (max-width: 400px) {

    #pagewrap {
        width: 100%;
    }
    #header{
        height: auto;
    }
    #content{
        float: none;
        height: 200px;
        width: auto;
    }
    #sidebar{
        float: none;
        height: 100px;
        width: 100%;
    }

}